|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgametheory.GenerateRecursiveList
public class GenerateRecursiveList
Generates the full enumeration of all possible outcomes, given a number of players and a number of actions they can choose. This class recursively calls itself until the entire set of possibilities is exhausted, and then returns an ArrayList.
Constructor Summary | |
---|---|
GenerateRecursiveList(int currentPlayer)
Recursive method to construct the set of outcomes. |
|
GenerateRecursiveList(int numPlayers,
int numActions)
Creates a new instance of GenerateRecursiveList |
Method Summary | |
---|---|
java.util.ArrayList<Jama.Matrix> |
getCombinations()
Obtain the combinatoric list of outcomes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenerateRecursiveList(int numPlayers, int numActions)
numPlayers
- Number of players.numActions
- Number of actions.public GenerateRecursiveList(int currentPlayer)
currentPlayer
- Index of the current update.Method Detail |
---|
public java.util.ArrayList<Jama.Matrix> getCombinations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |